<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="cn.edu.ujn.shi.dao.Msg" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD><TITLE>系统首页</TITLE></HEAD>
<body bgcolor=#D7E8F6>
<div style='width:100%;height:58px;background:#D7E8F6;border: 1px solid ;'>
    <div style='margin-left:480px;margin-top:10px;'>
        <a href='MainServlet'><img src='images/u1.png' width='40px'/><font color='red'><b>首页</b></font></a>&nbsp;
        <a href='MyMessageServlet'><img src='images/u2.png' width='40px'/><font color='#000080'><b>个人信息</b></font></a>
        <a href='AllServlet?search='><img src='images/u3.png' width='40px'/><font color='#000080'><b>全部信息</b></font></a>
        <a href='MyDingdanServlet'><img src='images/u4.png' width='40px'/><font color='#000080'><b>个人锁定</b></font></a>
        <a href='ListMyDiscussServlet'><img src='images/u5.png' width='40px'/><font color='#000080'><b>信息评价</b></font></a>
        <a href='ListMyMsgServlet'><img src='images/u6.png' width='40px'/><font color='#000080'><b>我的信息</b></font></a>
        <a href='index'><img src='images/u7.png' width='40px'/><font color='#000080'><b>退出</b></font></a>
    </div>
</div>
<img src='images/top1.jpg' width='100%'>
<div style='height:80px;margin-top:30px'><center><font size='+5'  face='楷体' color='#000080'><b>学校失物招领信息管理系统</b></font>
    <hr/>
    <br/>
    <form 'action=MainServlet' method='post'>
    <input type='text' name='where' style='width:300px;'/>
    <input type='submit' value='按条件搜索' style='width:300px; height:30px'/>
    <form>
        <br/><br/>
        <TABLE cellSpacing='0' cellPadding='0' width='95%' align='center' border='0' bgColor='#ffffff'>
            <table class='txt' cellSpacing='1' cellPadding='1' width='1000' align='center' bgColor='#005b4b' border='0'>
                <tr bgColor='#bad4a5'>
                    <td vAlign='top' width='250' bgcolor='#0099CC' align='center'><b>
                        <font color='#FFFFFF'>名称</font></b></td>
                    <td vAlign='top' width='100' bgcolor='#0099CC' align='center'><b>
                        <font color='#FFFFFF'>酬金</font></b></td>
                    <td vAlign='top' width='100' bgcolor='#0099CC' align='center'><b>
                        <font color='#FFFFFF'>类型</font></b></td>
                    <td vAlign='top' width='150' bgcolor='#0099CC' align='center'><b>
                        <font color='#FFFFFF'>详细</font></b></td>
                </tr>
                <%
                    List<Msg> list = (List<Msg>) request.getAttribute("list");
                    for(Msg d:list){
                        out.println("<tr>");
                        out.println("<td bgColor='#ffffff'>");
                        out.println(d.getName());
                        out.println("</td>");
                        out.println("<td bgColor='#ffffff'>");
                        out.println("￥"+d.getMoney());
                        out.println("</td>");
                        out.println("<td bgColor='#ffffff'>");
                        out.println(d.getType());
                        out.println("</td>");
                        out.println("<td bgColor='#ffffff'>");
                        out.println("<a href='DetailServlet?mid="+d.getMid()+"'><img src='images/view.gif'/></a>");
                        out.println("</td>");
                        out.println("</tr>");
                    }
                %>


            </table>
</center>
    <br/><br/><br/><br/>
    <br/><img src='images/bottom.png' width='100%'>
</BODY>
</HTML>

